﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using AutoMapper;
using YYSite.Domain;
using YYSite.Application;

namespace YYSite
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var host = new WebHostBuilder()
                .UseKestrel()
                .UseContentRoot(Directory.GetCurrentDirectory())
                .UseIISIntegration()
                .UseStartup<Startup>()
                
                .Build();

           // Mapper.Initialize(cfg => cfg.CreateMap<ArticleCreateModel, Article>());
           // Mapper.AssertConfigurationIsValid();

            host.Run();
        }
    }
}
